import React from 'react';

class Button extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            count: 0
        };
        this.getStuff = this.getStuff.bind(this);
    }
    getStuff () {
        this.setState({
            count: ++this.state.count
        });
        this.props.cusClick();
        console.log('song', this.state.count);
    }
    render () {
        return <button onClick={this.getStuff}>click dd</button>;
    }
}

export default Button;